var mongoose = require("mongoose");
module.exports = function(){
	var Schema = mongoose.Schema;
	var schema = new Schema({
		"validade":{
			type:Date
			,required:true
		}
		, "pin":{
			type:String
			,required:true
		}
	});
	return mongoose.model("Certificado",schema);
};